package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "cn_omc_bill_set_meal_item")
public class OmcBillSetMealItem extends BaseEntity {

    /**
     * 版本号
     */
    private Integer version;

    /*
     * 账单id
     * */
    @Column(name = "bill_id")
    private Long billId;

    /**
     * 套餐id
     */
    @Column(name = "setmeal_id")
    private Long setmealId;

    /**
     * 费用类别id
     */
    @Column(name = "expense_type_id")
    private Long expenseTypeId;


    /*
    * 缴费模式码
    * */
    @Column(name = "model_code")
    private Integer modelCode;

    /**
     * 是否退院退费 0.否 1.是
     */
    @Column(name = "is_out_return")
    private Integer isOutReturn;

    /**
     * 是否请假退费 0.否 1.是
     */
    @Column(name = "is_leave_return")
    private Integer isLeaveReturn;

    /**
     * 是否可以调整 0.否 1.是
     */
    @Column(name = "is_adjust")
    private Integer isAdjust;

    /**
     * 费用项id
     */
    @Column(name = "expense_item_id")
    private Long expenseItemId;

    /**
     * 消费类别名称
     */
    @Column(name = "expense_type_name")
    private String expenseTypeName;

    /**
     * 消费项目名称
     */
    @Column(name = "expense_item_name")
    private String expenseItemName;

    /**
     * 收费标准
     */
    @Column(name = "charge_standard")
    private BigDecimal chargeStandard;

    /**
     * 退费标准
     */
    @Column(name = "return_standard")
    private BigDecimal returnStandard;

    /*
    * 该账单消耗套餐收费项次数
    * */
    @Column(name = "used_degree")
    private BigDecimal usedDegree;

    /*
    * 剩余次数
    * */
    @Column(name = "residue_degree")
    private BigDecimal residueDegree;

    /**
     * 频次
     */
    private Integer times;

    /**
     * 描述
     */
    private String remark;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /*
     * 项目说明
     * */
    private String content;

    /*
    * 收费模式
    * */
    @Column(name = "cost_type")
    private Integer costType;
}